# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-terminal
pkgver=1.28.1
pkgrel=0
pkgdesc="MATE terminal emulator"
url="https://github.com/mate-desktop/mate-terminal"
arch="all"
license="GPL-2.0-or-later"
depends="
	mate-common
	mate-desktop
	yelp-tools
	"
makedepends="
	dconf-dev
	gtk+3.0-dev
	intltool
	itstool
	libsm-dev
	libtool
	libxml2-utils
	mate-desktop-dev
	pcre2-dev
	vte3-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-terminal-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7606fb87bc8b8af97ac932bdc7f34aa86681e54cf03b9f7838d60a1d02925b2b56e0987fc1e9d26e41c512f208198e102215440c63d771f618fade2496024287  mate-terminal-1.28.1.tar.xz
"
